package lab2;

public class Student {
    String name;
    Integer stuNum;
    String sex;
    Double score;

    public Student(String name, Integer stuNum, String sex, Double score) {
        this.name = name;
        this.stuNum = stuNum;
        this.sex = sex;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStuNum() {
        return stuNum;
    }

    public void setStuNum(Integer stuNum) {
        this.stuNum = stuNum;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", stuNum=" + stuNum +
                ", sex='" + sex + '\'' +
                ", score=" + score +
                '}';
    }
}
